package com.wenjiang.controller;


import com.wenjiang.service.MallCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/mallCarousel")
@RestController
public class MallCarouselController {

    @Autowired
    MallCarouselService mallCarouselService;

    //获取使用的轮播图
    @GetMapping("/getCarousels")
    public Object getCarousels(){
       return mallCarouselService.getCarousels();
    }

}
